package com.ship.contract.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.contract.bean.ConResourceFullName;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ConResourceFullNameServiceMapper extends BaseMapper<ConResourceFullName> {

    @Select("select * from con_resource_memorandum_resource where create_by= #{username}")
    List<ConResourceFullName> getConIdByUserAll(@Param("username") String username);

    @Select("select * from con_resource_memorandum_resource where create_by= #{username} and resource_full_name= #{resourceFullName}")
    List<ConResourceFullName> getConIdByUser(@Param("username") String username ,@Param("resourceFullName") String resourceFullName);

}
